Skip to content

Add role info command#441

Merged
GhostofGoes merged 8 commits into
masterfrom
add-role-info-command
Oct 5, 2019
Merged

Add role info command#441
GhostofGoes merged 8 commits into
masterfrom
add-role-info-command

Conversation

@jb3
Copy link
Copy Markdown
Member

@jb3 jb3 commented Sep 21, 2019

Add a new command to show specific info (colour, id, permissions, position) about a list of given roles.

Closes #440.

@MarkKoz MarkKoz added area: cogs t: feature New feature or request labels Sep 22, 2019
Copy link
Copy Markdown
Contributor

@sco1 sco1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works fine for exact input(s), but I think the Greedy operator is more harmful than helpful here.

Along with being case-sensitive, it also partially surpresses some of the feedback from invalid parameters and stops parsing if an invalid role is found. I think the desired behavior could be accomplished with something along the lines of *roles: Union[Role, str] and a helper fallback converter (or just a custom converter) for roles that can't be converted.

@GhostofGoes GhostofGoes merged commit dbe7621 into master Oct 5, 2019
@GhostofGoes GhostofGoes deleted the add-role-info-command branch October 5, 2019 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t: feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement a !role command

4 participants